﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TodesesserMapEditor
{
    public partial class MapEditorSettings : Form
    {
        public int newRedraw;
        public MapEditorSettings(int currentRedrawRate)
        {
            InitializeComponent();
            textBox1.Text = currentRedrawRate.ToString();
        }

        private void MapEditorSettings_Load(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            newRedraw = int.Parse(textBox1.Text);
            DialogResult = DialogResult.OK;
            this.Close();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            this.Close();
        }
    }
}
